import request from '@/utils/request'
import request1 from "../../utils/request1";
// 查询证件类型列表
export function listIdCardType(query) {
  return request({
    url: '/base/idCardType/list',
    method: 'get',
    params: query
  })
}

// 查询证件类型列表
export function get_card_type() {
  return request1({
    url: '/Insurance/get_card_type',
    method: 'get',
    params: null
  })
}
// 查询证件类型列表
export function listAllIdCardType() {
  return request({
    url: '/base/idCardType/listAll',
    method: 'get',
    params: null
  })
}

// 查询证件类型详细
export function getIdCardType(id) {
  return request({
    url: '/base/idCardType/' + id,
    method: 'get'
  })
}

// 新增证件类型
export function addIdCardType(data) {
  return request({
    url: '/base/idCardType',
    method: 'post',
    data: data
  })
}

// 修改证件类型
export function updateIdCardType(data) {
  return request({
    url: '/base/idCardType',
    method: 'put',
    data: data
  })
}

// 删除证件类型
export function delIdCardType(id) {
  return request({
    url: '/base/idCardType/' + id,
    method: 'delete'
  })
}

// 导出证件类型
export function exportIdCardType(query) {
  return request({
    url: '/base/idCardType/export',
    method: 'get',
    params: query
  })
}
